package com.zerox.service;

import com.zerox.entity.SysUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserService {
    List<SysUser> list();

    SysUser login(String name,String password);


    List<SysUser> listUser(Integer startIndex, Integer pageSize, String userName, Integer roleId);

    int count(String userName, Integer roleId);

    int add(SysUser sysUser);

    int toAddRole(Integer userId,Integer roleId );

    List<SysUser> toSelectUserDesc();

//    int addrelevancy();

    int delete(Integer id);

    SysUser userById(Integer id);

    int update(SysUser sysUser);

    int add2(SysUser sysUser);



}
